-
Couldn't load subscription status.
- Fork 537
chore(cargo): add cargo-machete to detect and remove unused dependencies #3713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(cargo): add cargo-machete to detect and remove unused dependencies #3713
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3713 +/- ##
==========================================
+ Coverage 75.30% 75.33% +0.03%
==========================================
Files 145 145
Lines 43773 43751 -22
Branches 43773 43751 -22
==========================================
Hits 32962 32962
+ Misses 9217 9195 -22
Partials 1594 1594 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
b9d6bf3 to
16f18bf
Compare
Signed-off-by: Florian Valeye <[email protected]>
16f18bf to
5089cb3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did not know this existed - very useful 👍.
| async-trait = { workspace = true } | ||
| bytes = { workspace = true } | ||
| futures = { workspace = true } | ||
| tracing = { workspace = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think here @rtyler might say that adding logging to the crates is the way to go and every crate should have tracing as a required dependency :D.
That said, I am fairly sure we already have an issue to track this.
| [package.metadata.cargo-machete] | ||
| ignored = ["foyer"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can remove this for now I think.
I believe this may have slipped though while i was working on #3440. It will get added back once we merge that PR, but then potentially also as optional.
…ies (delta-io#3713) Adding `cargo machete` to find and remove unused dependencies quickly in the CI. The cargo machete has been run to identify and remove some unused dependencies. A review should be done to ensure that flagged dependencies are truly unused and to avoid false positives. - https://github.com/bnjbvr/cargo-machete Signed-off-by: Florian Valeye <[email protected]>
Description
Adding
cargo macheteto find and remove unused dependencies quickly in the CI.The cargo machete has been run to identify and remove some unused dependencies.
A review should be done to ensure that flagged dependencies are truly unused and to avoid false positives.
Documentation